﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ue.CQRS.Repositories
{
    public class RepositoryFactory
    {
        private static class RepositoryHolder<TKey, TValue>
        {
            public static IRepository<TKey, TValue> Instance = new ConcurrentRepository<TKey, TValue>();
        }

        public static IRepository<TKey, TValue> GetRepository<TKey, TValue>()
        {
            return RepositoryHolder<TKey, TValue>.Instance;
        }
    }
}
